package org.evolver.disser;

import java.util.Set;

import org.apfloat.Apfloat;
import org.apfloat.ApfloatMath;

public class MyTestFunction implements Function {

	public Apfloat GetValue(Apfloat arg) {
		Apfloat		ret = ApfloatMath.tan(arg).divide(arg).subtract(new Apfloat(4.0));
		return ret;
	}

	public int		GetSingularities(Set<Apfloat> singularities) {
		singularities.clear();
		singularities.add(new Apfloat(5.0));
		singularities.add(new Apfloat(4.0));
		return 0;
	}
}
